var rgb="rgb(253,183,25)";


var str=rgb.substring(rgb.indexOf("(")+1,rgb.lastIndexOf(")"));
var tempArr=str.split(",");
var hex;
for (let index = 0; index < tempArr.length; index++) {
    const element = tempArr[index];
    
    hex+=parseInt(element).toString(16);
}
console.log(h);